import axios from './axios'

//直营店 店铺盘点 新建
export function postData(data){
  return axios({
    method:'post',
    url:'/vip-warehouse-check/save', 
    // url:'vip-warehouse-check/checkInventory',
    data
  })
}

export function postData1(data){
  return axios({
    method:'post',
    url:'/vip-warehouse-check/importVipCheck', 
    data
  })
}
// 店铺盘点 盘存
export function saveData(params){
  return axios({
    // method:'post',
    // url:'/vip-warehouse-check/save', 
    url:'vip-warehouse-check/checkInventory',
    params
  })
}
// 盘点 点击左表 查询右表
export function getRightData(data){
  return axios({
    method:'post',
    url:'/vip-warehouse-check/queryDetail',
    data
  })
}
//店铺盘点 确认
export function checkConfirm(params){
  return axios({
    method:'put',
    url:'/vip-warehouse-check/checkAffirm',
    params
  })
}
//获取直营店编号 名称
export function getShop(params){
  return axios({
    url:'/customer/vipCustomer',
    params
  })
}

//vip建档 新建
export function postBuild(data){
  return axios({
    method:'post',
    url:'/vip-customer/insert',
    data
  })
}
//vip建档 查询vip信息
export function getVip(params){
  return axios({
    url:'/vip-customer/list',
    params
  })
}
//vip建档 修改vip
export function putVip(data){
  return axios({
    method:'put',
    url:'/vip-customer/update',
    data
  })
}
//vip建档 删除
export function deleVip(params){
  return axios({
    method:'delete',
    url:'/vip-customer/delete',
    params
  })
}
// vip店员建档 获取比率业绩
export function getClerk(params){
  return axios({
    url:'/vip-main-rate/main',
    params
  })
}
// vip店员建档 保存
export function postClerk(data){
  return axios({
    method:'post',
    url:'/vip-personnel/insert',
    data
  })
}
//获取店员
export function getClerk1(params){
  return axios({
    url:'/vip-personnel/list',
    params
  })
}
//修改店员
export function putClerk(data){
  return axios({
    method:'put',
    url:'/vip-personnel/update',
    data
  })
}
//店员删除
export function deleClerk(params){
  return axios({
    method:'delete',
    url:'/vip-personnel/delete',
    params
  })
}
//充值 积分 余额查询
export function getmoney(params){
  return axios({
    url:'/vip-sell-total/getMoney',
    params
  })
}
//充值 积分 查询
export function getRecharge(params){
  return axios({
    url:'/vip-sell-total/getTotalList',
    params
  })
}
//充值
export function Recharge(params){
  return axios({
    method:'post',
    url:'/vip-sell-total/insertRecharge',
    params
  })
}
//删除
export function DeleteRecharge(params){
  return axios({
    method:'delete',
    url:'/vip-sell-total/deleteRecharge',
    params
  })
}

//积分设置
export function postIntegral(params){
  return axios({
    method:'post',
    url:'/vip-main-rate/integration',
    params
  })
}
//获取积分
export function getIntegral(params){
  return axios({
    url:'/vip-main-rate/main',
    params
  })
}

//店铺销售 新增保存
export function postShop(params){
  return axios({
    method:'post',
    url:'/vip-sell-total/save',
    params
  })
}
//修改
export function putShop(data){
  return axios({
    method:'put',
    url:'/vip-sell-total/updateVipSell',
    data
  })
}
//继续录入
export function keepPostShop(data){
  return axios({
    method:'post',
    url:'/vip-sell-total/insert',
    data
  })
}
//店铺销售查询
export function getShopSale(params){
  return axios({
    url:'/vip-sell-total/getVipSell',
    params
  })
}
//vip销售 删除
export function DeleteSell(params){
  return axios({
    method:'delete',
    url:'/vip-sell-total/deleteSell',
    params
  })
}
//结账
export function CheckOut(params){
  return axios({
    // method:'put',
    url:'/vip-sell-total/updateStatus',
    params
  })
}





//店铺退货
export function GoodsNew(data){
  return axios({
    method:'post',
    url:'/vip-out-total/continue',
    data
  })
}
//退货 改单 
export function putGoods(data){
  return axios({
    method:'put',
    url:'/vip-out-total/update',
    data
  })
}
//店铺退货 查询 
export function getGoods(params){
  return axios({
    url:'/vip-out-total/list',
    params
  })
}
//退货查询   删除
export function deleteGoods(params){
  return axios({
    method:'delete',
    url:'/vip-out-total/delete',
    params
  })
}



//业绩积分查询
export function getAchievement(params){
  return axios({
    url:'/vip-sell-total/getIntegral',
    params
  })
}


//店铺盘点查询  盘点 盘差
export function shopQuery(data){
  return axios({
    method:'post',
    url:'/vip-warehouse-check/query',
    data
  })
}

//店铺盘点查询  核存
export function shopQueryOne(data){
  return axios({
    method:'post',
    url:'vip-warehouse-check/nuclearDeposit',
    data
  })
}
//盘点 删除清空
export function deleteShop(data){
  return axios({
    method:'post',
    url:'/vip-warehouse-check/remove',
    data
  })
}
//盘点 减标 
export function reduaceRfid(params){
  return axios({
    method:'delete',
    url:'/vip-warehouse-stocking-rfid/removeRfids',
    params
  })
}


// 获取客户销售时间可选最大值
export function getTime(params){
  return axios({
    url:'/sellTotal/maxSellTime',
    params
  })
}

//店铺销售确认
export function confirm(params){
  return axios({
    method:'put',
    url:'/vip-sell-total/affirm',
    params
  })
}

//退货确认
export function returnConfirm(params){
  return axios({
    method:'put',
    url:'/vip-out-total/affirm',
    params
  })
}
